### 配置sw子网
ovn-nbctl set logical_switch sw-300 \
  other_config:subnet="30.1.1.0/24" \
  other_config:exclude_ips="30.1.1.1..30.1.1.99"
 
### 配置dhcp option 
CIDR_UUID300=$(ovn-nbctl create dhcp_options \
  cidr=30.1.1.0/24 \
  options='"lease_time"="3600" "router"="30.1.1.1" "server_id"="30.1.1.1" "server_mac"="c0:ff:ee:00:30:01"')
 
### vm接口绑定 dhcp option
ovn-nbctl lsp-add sw-300 sw-300-port-vm2
ovn-nbctl lsp-set-addresses sw-300-port-vm2 "fa:10:dd:1b:30:01 dynamic"
ovn-nbctl lsp-set-dhcpv4-options sw-300-port-vm2 $CIDR_UUID300
